
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>H5 UI定制 · EasyClick开发文档</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-chapter-fold/chapter-fold.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-code/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-search-pro/search.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-anchor-navigation-ex/style/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="../hot-update.html" />
    
    
    <link rel="prev" href="ui/switch.html" />
    

    
        <link rel="shortcut icon" href="/zh-cn/images/ico.png" type="image/x-icon">
    
    
    
    
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="/zh-cn/images/ico.png">
    
    
        
    
    
        
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../../">
            
                <a href="../../">
            
                    
                    简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../features.html">
            
                <a href="../features.html">
            
                    
                    特性
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../changelog.html">
            
                <a href="../changelog.html">
            
                    
                    更改记录
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../getting-start.html">
            
                <a href="../getting-start.html">
            
                    
                    开始
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5" >
            
                <a target="_blank" href="https://www.bilibili.com/video/bv1W54y1Q7JG">
            
                    
                    视频教程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="devtools/dev-tools.html">
            
                <a href="devtools/dev-tools.html">
            
                    
                    开发工具介绍
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="devtools/dev-tools-install.html">
            
                <a href="devtools/dev-tools-install.html">
            
                    
                    安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="devtools/dev-tools-project.html">
            
                <a href="devtools/dev-tools-project.html">
            
                    
                    工程相关
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="devtools/dev-tools-device.html">
            
                <a href="devtools/dev-tools-device.html">
            
                    
                    设备相关
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="devtools/dev-tools-screen.html">
            
                <a href="devtools/dev-tools-screen.html">
            
                    
                    屏幕相关
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.5" data-path="devtools/dev-tools-settings.html">
            
                <a href="devtools/dev-tools-settings.html">
            
                    
                    设置
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../funcs.html">
            
                <a href="../funcs.html">
            
                    
                    功能函数
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="global/global.html">
            
                <a href="global/global.html">
            
                    
                    全局模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="global/global-shortcut.html">
            
                <a href="global/global-shortcut.html">
            
                    
                    全局快捷事件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="global/selector-node.html">
            
                <a href="global/selector-node.html">
            
                    
                    选择器&节点
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.4" data-path="acevent-api.html">
            
                <a href="acevent-api.html">
            
                    
                    无障碍事件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.5" data-path="event-api.html">
            
                <a href="event-api.html">
            
                    
                    代理事件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.6" data-path="image-api.html">
            
                <a href="image-api.html">
            
                    
                    图色函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.7" data-path="device-api.html">
            
                <a href="device-api.html">
            
                    
                    设备函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.8" data-path="file-api.html">
            
                <a href="file-api.html">
            
                    
                    文件函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.9" data-path="http-api.html">
            
                <a href="http-api.html">
            
                    
                    网络函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.10" data-path="thread-api.html">
            
                <a href="thread-api.html">
            
                    
                    线程函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.11" data-path="utils-api.html">
            
                <a href="utils-api.html">
            
                    
                    常用工具函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.12" data-path="shell-api.html">
            
                <a href="shell-api.html">
            
                    
                    Shell命令函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.13" data-path="sqlite-api.html">
            
                <a href="sqlite-api.html">
            
                    
                    Sqlite命令函数
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="ui-custom.html">
            
                <a href="ui-custom.html">
            
                    
                    原生UI定制
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="ui-js-inter.html">
            
                <a href="ui-js-inter.html">
            
                    
                    JS编写UI
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="ui-js-template.html">
            
                <a href="ui-js-template.html">
            
                    
                    模板式UI
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3" data-path="ui-native-view.html">
            
                <a href="ui-native-view.html">
            
                    
                    原生UI控件
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.3.1" data-path="ui/linearlayout.html">
            
                <a href="ui/linearlayout.html">
            
                    
                    LinearLayout线性布局
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3.2" data-path="ui/framelayout.html">
            
                <a href="ui/framelayout.html">
            
                    
                    FrameLayout帧布局
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3.3" data-path="ui/relativelayout.html">
            
                <a href="ui/relativelayout.html">
            
                    
                    RelativeLayout绝对布局
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3.4" data-path="ui/scrollview.html">
            
                <a href="ui/scrollview.html">
            
                    
                    ScrollView滚动框
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3.5" data-path="ui/view.html">
            
                <a href="ui/view.html">
            
                    
                    View视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3.6" data-path="ui/button.html">
            
                <a href="ui/button.html">
            
                    
                    Button按钮
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3.7" data-path="ui/textview.html">
            
                <a href="ui/textview.html">
            
                    
                    TextView文本
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3.8" data-path="ui/edittext.html">
            
                <a href="ui/edittext.html">
            
                    
                    EditText输入框
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3.9" data-path="ui/checkbox.html">
            
                <a href="ui/checkbox.html">
            
                    
                    CheckBox复选框
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3.10" data-path="ui/radiogroup.html">
            
                <a href="ui/radiogroup.html">
            
                    
                    RadioGroup布局
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3.11" data-path="ui/radiobutton.html">
            
                <a href="ui/radiobutton.html">
            
                    
                    RadioButton单选框
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3.12" data-path="ui/spinner.html">
            
                <a href="ui/spinner.html">
            
                    
                    Spinner下拉选择框
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3.13" data-path="ui/webview.html">
            
                <a href="ui/webview.html">
            
                    
                    WebView内嵌浏览器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3.14" data-path="ui/imageview.html">
            
                <a href="ui/imageview.html">
            
                    
                    ImageView图像
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3.15" data-path="ui/cardview.html">
            
                <a href="ui/cardview.html">
            
                    
                    CardView卡片布局
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3.16" data-path="ui/switch.html">
            
                <a href="ui/switch.html">
            
                    
                    Swtich开关按钮
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter active" data-level="1.9" data-path="html-ui-custom.html">
            
                <a href="html-ui-custom.html">
            
                    
                    H5 UI定制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="../hot-update.html">
            
                <a href="../hot-update.html">
            
                    
                    热更新功能
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="../zk/zk.html">
            
                <a href="../zk/zk.html">
            
                    
                    企业版中控接口
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.11.1" data-path="../zk/zk-ec-state.html">
            
                <a href="../zk/zk-ec-state.html">
            
                    
                    EC状态控制接口
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2" data-path="../zk/zk-node.html">
            
                <a href="../zk/zk-node.html">
            
                    
                    全局节点模块接口
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.11.2.1" data-path="../zk/global/zk-global-log.html">
            
                <a href="../zk/global/zk-global-log.html">
            
                    
                    日志接口
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2.2" data-path="../zk/global/zk-node-service.html">
            
                <a href="../zk/global/zk-node-service.html">
            
                    
                    节点服务接口
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2.3" data-path="../zk/global/zk-global-click.html">
            
                <a href="../zk/global/zk-global-click.html">
            
                    
                    点击动作接口
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2.4" data-path="../zk/global/zk-global-multitouch.html">
            
                <a href="../zk/global/zk-global-multitouch.html">
            
                    
                    多点触摸动作接口
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2.5" data-path="../zk/global/zk-global-swipe.html">
            
                <a href="../zk/global/zk-global-swipe.html">
            
                    
                    滑动动作接口
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2.6" data-path="../zk/global/zk-global-drag.html">
            
                <a href="../zk/global/zk-global-drag.html">
            
                    
                    拖动动作接口
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2.7" data-path="../zk/global/zk-global-input.html">
            
                <a href="../zk/global/zk-global-input.html">
            
                    
                    输入动作接口
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2.8" data-path="../zk/global/zk-global-node.html">
            
                <a href="../zk/global/zk-global-node.html">
            
                    
                    节点操作接口
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2.9" data-path="../zk/global/zk-global-systemkey.html">
            
                <a href="../zk/global/zk-global-systemkey.html">
            
                    
                    系统按键接口
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2.10" data-path="../zk/global/zk-global-notice.html">
            
                <a href="../zk/global/zk-global-notice.html">
            
                    
                    通知栏接口
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2.11" data-path="../zk/global/zk-global-floatview.html">
            
                <a href="../zk/global/zk-global-floatview.html">
            
                    
                    悬浮窗接口
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.11.3" data-path="../zk/zk-agent.html">
            
                <a href="../zk/zk-agent.html">
            
                    
                    代理事件模块接口 - 开发中
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.4" data-path="../zk/zk-image.html">
            
                <a href="../zk/zk-image.html">
            
                    
                    图色模块接口 - 开发中
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.5" data-path="../zk/zk-device.md">
            
                <span>
            
                    
                    设备模块接口 - 开发中
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.6" data-path="../zk/zk-file.md">
            
                <span>
            
                    
                    文件模块接口 - 开发中
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.7" data-path="../zk/zk-http.md">
            
                <span>
            
                    
                    网络模块接口 - 开发中
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.8" data-path="../zk/zk-utils.md">
            
                <span>
            
                    
                    常用工具模块接口 - 开发中
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.9" data-path="../zk/zk-shell.md">
            
                <span>
            
                    
                    Shell命令模块接口 - 开发中
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.10" data-path="../zk/zk-sqlite.md">
            
                <span>
            
                    
                    Sqlite模块接口 - 开发中
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="plugin/plugins.html">
            
                <a href="plugin/plugins.html">
            
                    
                    插件开发
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13" data-path="../question-answer.html">
            
                <a href="../question-answer.html">
            
                    
                    常见问题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14" data-path="../agreement.html">
            
                <a href="../agreement.html">
            
                    
                    用户协议
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15" data-path="../declare.html">
            
                <a href="../declare.html">
            
                    
                    免责声明
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.16" >
            
                <span>
            
                    
                    技术交流 QQ群：777164022
            
                </span>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../.." >H5 UI定制</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <div id="anchor-navigation-ex-navbar"><i class="fa fa-navicon"></i><ul><li><span class="title-icon "></span><a href="#&#x8BF4;&#x660E;"><b>1. </b>&#x8BF4;&#x660E;</a></li><li><span class="title-icon "></span><a href="#&#x591A;tab&#x6807;&#x7B7E;&#x652F;&#x6301;"><b>2. </b>&#x591A;tab&#x6807;&#x7B7E;&#x652F;&#x6301;</a></li><li><span class="title-icon "></span><a href="#&#x6D4F;&#x89C8;&#x5668;&#x6269;&#x5C55;&#x65B9;&#x6CD5;"><b>3. </b>&#x6D4F;&#x89C8;&#x5668;&#x6269;&#x5C55;&#x65B9;&#x6CD5;</a></li><ul><li><span class="title-icon "></span><a href="#&#x542F;&#x52A8;&#x811A;&#x672C;"><b>3.1. </b>&#x542F;&#x52A8;&#x811A;&#x672C;</a></li><li><span class="title-icon "></span><a href="#&#x505C;&#x6B62;&#x811A;&#x672C;"><b>3.2. </b>&#x505C;&#x6B62;&#x811A;&#x672C;</a></li><li><span class="title-icon "></span><a href="#&#x9690;&#x85CF;&#x5F00;&#x59CB;&#x6309;&#x94AE;"><b>3.3. </b>&#x9690;&#x85CF;&#x5F00;&#x59CB;&#x6309;&#x94AE;</a></li><li><span class="title-icon "></span><a href="#&#x663E;&#x793A;&#x5F00;&#x59CB;&#x6309;&#x94AE;"><b>3.4. </b>&#x663E;&#x793A;&#x5F00;&#x59CB;&#x6309;&#x94AE;</a></li><li><span class="title-icon "></span><a href="#&#x83B7;&#x53D6;&#x6240;&#x6709;&#x914D;&#x7F6E;&#x7684;json&#x5B57;&#x7B26;&#x4E32;"><b>3.5. </b>&#x83B7;&#x53D6;&#x6240;&#x6709;&#x914D;&#x7F6E;&#x7684;JSON&#x5B57;&#x7B26;&#x4E32;</a></li><li><span class="title-icon "></span><a href="#&#x83B7;&#x53D6;&#x5355;&#x4E2A;&#x914D;&#x7F6E;&#x7684;&#x5B57;&#x7B26;&#x4E32;"><b>3.6. </b>&#x83B7;&#x53D6;&#x5355;&#x4E2A;&#x914D;&#x7F6E;&#x7684;&#x5B57;&#x7B26;&#x4E32;</a></li><li><span class="title-icon "></span><a href="#&#x4FDD;&#x5B58;&#x5355;&#x4E2A;&#x914D;&#x7F6E;"><b>3.7. </b>&#x4FDD;&#x5B58;&#x5355;&#x4E2A;&#x914D;&#x7F6E;</a></li><li><span class="title-icon "></span><a href="#&#x6253;&#x5F00;ec&#x7684;&#x7CFB;&#x7EDF;&#x8BBE;&#x7F6E;"><b>3.8. </b>&#x6253;&#x5F00;EC&#x7684;&#x7CFB;&#x7EDF;&#x8BBE;&#x7F6E;</a></li><li><span class="title-icon "></span><a href="#&#x663E;&#x793A;toast&#x6D88;&#x606F;"><b>3.9. </b>&#x663E;&#x793A;Toast&#x6D88;&#x606F;</a></li><li><span class="title-icon "></span><a href="#&#x663E;&#x793A;&#x65E5;&#x5FD7;&#x6D88;&#x606F;&#x7A97;&#x53E3;"><b>3.10. </b>&#x663E;&#x793A;&#x65E5;&#x5FD7;&#x6D88;&#x606F;&#x7A97;&#x53E3;</a></li><li><span class="title-icon "></span><a href="#&#x5173;&#x95ED;&#x65E5;&#x5FD7;&#x6D88;&#x606F;&#x7A97;&#x53E3;"><b>3.11. </b>&#x5173;&#x95ED;&#x65E5;&#x5FD7;&#x6D88;&#x606F;&#x7A97;&#x53E3;</a></li><li><span class="title-icon "></span><a href="#&#x663E;&#x793A;&#x65E5;&#x5FD7;&#x6D88;&#x606F;"><b>3.12. </b>&#x663E;&#x793A;&#x65E5;&#x5FD7;&#x6D88;&#x606F;</a></li><li><span class="title-icon "></span><a href="#&#x663E;&#x793A;&#x542F;&#x505C;&#x63A7;&#x5236;&#x7A97;&#x53E3;"><b>3.13. </b>&#x663E;&#x793A;&#x542F;&#x505C;&#x63A7;&#x5236;&#x7A97;&#x53E3;</a></li><li><span class="title-icon "></span><a href="#&#x5173;&#x95ED;&#x542F;&#x505C;&#x63A7;&#x5236;&#x7A97;&#x53E3;"><b>3.14. </b>&#x5173;&#x95ED;&#x542F;&#x505C;&#x63A7;&#x5236;&#x7A97;&#x53E3;</a></li><li><span class="title-icon "></span><a href="#&#x6253;&#x5F00;&#x5176;&#x4ED6;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;-openactivity"><b>3.15. </b>&#x6253;&#x5F00;&#x5176;&#x4ED6;&#x5E94;&#x7528;&#x7A0B;&#x5E8F; openActivity</a></li></ul><li><span class="title-icon "></span><a href="#&#x670D;&#x52A1;&#x72B6;&#x6001;&#x63A7;&#x5236;"><b>4. </b>&#x670D;&#x52A1;&#x72B6;&#x6001;&#x63A7;&#x5236;</a></li><ul><li><span class="title-icon "></span><a href="#&#x662F;&#x5426;&#x662F;&#x65E0;&#x969C;&#x788D;&#x670D;&#x52A1;&#x6A21;&#x5F0F;"><b>4.1. </b>&#x662F;&#x5426;&#x662F;&#x65E0;&#x969C;&#x788D;&#x670D;&#x52A1;&#x6A21;&#x5F0F;</a></li><li><span class="title-icon "></span><a href="#&#x662F;&#x5426;&#x662F;&#x4EE3;&#x7406;&#x670D;&#x52A1;&#x6A21;&#x5F0F;"><b>4.2. </b>&#x662F;&#x5426;&#x662F;&#x4EE3;&#x7406;&#x670D;&#x52A1;&#x6A21;&#x5F0F;</a></li><li><span class="title-icon "></span><a href="#&#x65E0;&#x969C;&#x788D;&#x670D;&#x52A1;&#x662F;&#x5426;&#x5DF2;&#x7ECF;&#x542F;&#x52A8;"><b>4.3. </b>&#x65E0;&#x969C;&#x788D;&#x670D;&#x52A1;&#x662F;&#x5426;&#x5DF2;&#x7ECF;&#x542F;&#x52A8;</a></li><li><span class="title-icon "></span><a href="#&#x4EE3;&#x7406;&#x670D;&#x52A1;&#x662F;&#x5426;&#x5DF2;&#x7ECF;&#x542F;&#x52A8;"><b>4.4. </b>&#x4EE3;&#x7406;&#x670D;&#x52A1;&#x662F;&#x5426;&#x5DF2;&#x7ECF;&#x542F;&#x52A8;</a></li><li><span class="title-icon "></span><a href="#&#x542F;&#x52A8;&#x670D;&#x52A1;&#x73AF;&#x5883;"><b>4.5. </b>&#x542F;&#x52A8;&#x670D;&#x52A1;&#x73AF;&#x5883;</a></li></ul><li><span class="title-icon "></span><a href="#&#x60AC;&#x6D6E;&#x7A97;&#x63A7;&#x5236;"><b>5. </b>&#x60AC;&#x6D6E;&#x7A97;&#x63A7;&#x5236;</a></li><ul><li><span class="title-icon "></span><a href="#&#x662F;&#x5426;&#x6709;&#x60AC;&#x6D6E;&#x7A97;&#x6743;&#x9650;"><b>5.1. </b>&#x662F;&#x5426;&#x6709;&#x60AC;&#x6D6E;&#x7A97;&#x6743;&#x9650;</a></li><li><span class="title-icon "></span><a href="#&#x8BF7;&#x6C42;&#x60AC;&#x6D6E;&#x7A97;&#x6743;&#x9650;"><b>5.2. </b>&#x8BF7;&#x6C42;&#x60AC;&#x6D6E;&#x7A97;&#x6743;&#x9650;</a></li><li><span class="title-icon "></span><a href="#&#x5C55;&#x793A;&#x6D6E;&#x7A97;"><b>5.3. </b>&#x5C55;&#x793A;&#x6D6E;&#x7A97;</a></li><li><span class="title-icon "></span><a href="#&#x5173;&#x95ED;&#x6D6E;&#x7A97;"><b>5.4. </b>&#x5173;&#x95ED;&#x6D6E;&#x7A97;</a></li><li><span class="title-icon "></span><a href="#&#x5173;&#x95ED;&#x6240;&#x6709;&#x6D6E;&#x7A97;&#xFF0C;&#x4E0D;&#x5305;&#x542B;&#x65E5;&#x5FD7;&#x60AC;&#x6D6E;&#x7A97;"><b>5.5. </b>&#x5173;&#x95ED;&#x6240;&#x6709;&#x6D6E;&#x7A97;&#xFF0C;&#x4E0D;&#x5305;&#x542B;&#x65E5;&#x5FD7;&#x60AC;&#x6D6E;&#x7A97;</a></li></ul><li><span class="title-icon "></span><a href="#&#x5B9A;&#x65F6;&#x4EFB;&#x52A1;"><b>6. </b>&#x5B9A;&#x65F6;&#x4EFB;&#x52A1;</a></li><ul><li><span class="title-icon "></span><a href="#&#x5F00;&#x542F;&#x4E00;&#x4E2A;&#x5B9A;&#x65F6;&#x4EFB;&#x52A1;"><b>6.1. </b>&#x5F00;&#x542F;&#x4E00;&#x4E2A;&#x5B9A;&#x65F6;&#x4EFB;&#x52A1;</a></li><li><span class="title-icon "></span><a href="#&#x83B7;&#x53D6;&#x6240;&#x6709;&#x5B9A;&#x65F6;&#x4EFB;&#x52A1;tag"><b>6.2. </b>&#x83B7;&#x53D6;&#x6240;&#x6709;&#x5B9A;&#x65F6;&#x4EFB;&#x52A1;TAG</a></li><li><span class="title-icon "></span><a href="#&#x53D6;&#x6D88;&#x6240;&#x6709;&#x5B9A;&#x65F6;&#x4EFB;&#x52A1;"><b>6.3. </b>&#x53D6;&#x6D88;&#x6240;&#x6709;&#x5B9A;&#x65F6;&#x4EFB;&#x52A1;</a></li><li><span class="title-icon "></span><a href="#&#x53D6;&#x6D88;&#x6307;&#x5B9A;tag&#x5B9A;&#x65F6;&#x4EFB;&#x52A1;"><b>6.4. </b>&#x53D6;&#x6D88;&#x6307;&#x5B9A;TAG&#x5B9A;&#x65F6;&#x4EFB;&#x52A1;</a></li></ul></ul></div><a href="#&#x8BF4;&#x660E;" id="anchorNavigationExGoTop"><i class="fa fa-arrow-up"></i></a><h1 id="&#x8BF4;&#x660E;"><a name="&#x8BF4;&#x660E;" class="anchor-navigation-ex-anchor" href="#&#x8BF4;&#x660E;"><i class="fa fa-link" aria-hidden="true"></i></a>1. &#x8BF4;&#x660E;</h1>
<ul>
<li>EasyClick &#x4F7F;&#x7528;WebView&#x652F;&#x6491;HTML&#x7684;UI&#x65B9;&#x5F0F;&#xFF0C;&#x5E76;&#x4E14;&#x6269;&#x5C55;&#x4E86;JS&#x65B9;&#x6CD5;&#xFF0C;&#x7528;&#x4E8E;&#x63A7;&#x5236;EC&#x7A0B;&#x5E8F;&#x3002;</li>
<li>&#x65B0;&#x5EFA;&#x5DE5;&#x7A0B;&#x65F6;&#x5019;&#x53EF;&#x4EE5;&#x5BF9;&#x5E94;&#x7684;&#x6A21;&#x677F;&#xFF0C;&#x63A8;&#x8350;&#x4F7F;&#x7528;Materialize&#x6A21;&#x677F;&#xFF0C;&#x6587;&#x6863;&#x7F51;&#x5740; <a href="http://www.materializecss.cn" target="_blank">http://www.materializecss.cn</a></li>
<li>&#x4E5F;&#x53EF;&#x4EE5;&#x81EA;&#x5DF1;&#x7F16;&#x5199;&#x7CBE;&#x7F8E;&#x7684;HTML&#x9875;&#x9762;&#xFF0C;&#x66F4;&#x591A;JS&#x65B9;&#x6CD5;&#x7684;&#x4F7F;&#x7528;&#x8BF7;&#x53C2;&#x8003;&#x6A21;&#x677F;&#x4E2D;&#x7684;&#x7528;&#x6CD5;</li>
</ul>
<h1 id="&#x591A;tab&#x6807;&#x7B7E;&#x652F;&#x6301;"><a name="&#x591A;tab&#x6807;&#x7B7E;&#x652F;&#x6301;" class="anchor-navigation-ex-anchor" href="#&#x591A;tab&#x6807;&#x7B7E;&#x652F;&#x6301;"><i class="fa fa-link" aria-hidden="true"></i></a>2. &#x591A;tab&#x6807;&#x7B7E;&#x652F;&#x6301;</h1>
<p>&#x5982;&#x679C;&#x9700;&#x8981;&#x591A;tab&#x652F;&#x6301;&#xFF0C;&#x53EA;&#x8981;&#x5728;&#x5DE5;&#x7A0B;&#x7684;layout&#x5DE5;&#x7A0B;&#x4E0B;&#x65B0;&#x5EFA;&#x4E00;&#x4E2A;tab.ini&#x6587;&#x4EF6;&#x5373;&#x53EF;
&#x5185;&#x5BB9;&#x662F; tab&#x540D;&#x79F0;=&#x5E03;&#x5C40;&#x6587;&#x4EF6;&#x540D;&#x79F0;&#xFF0C;&#x4F8B;&#x5982;</p>
<blockquote>
<pre><code class="lang-ini">&#x53C2;&#x6570;&#x914D;&#x7F6E;=main.html
&#x6CE8;&#x518C;&#x4F7F;&#x7528;=reg.html
&#x4F7F;&#x7528;&#x8BF4;&#x660E;=intr.html
</code></pre>
</blockquote>
<h1 id="&#x6D4F;&#x89C8;&#x5668;&#x6269;&#x5C55;&#x65B9;&#x6CD5;"><a name="&#x6D4F;&#x89C8;&#x5668;&#x6269;&#x5C55;&#x65B9;&#x6CD5;" class="anchor-navigation-ex-anchor" href="#&#x6D4F;&#x89C8;&#x5668;&#x6269;&#x5C55;&#x65B9;&#x6CD5;"><i class="fa fa-link" aria-hidden="true"></i></a>3. &#x6D4F;&#x89C8;&#x5668;&#x6269;&#x5C55;&#x65B9;&#x6CD5;</h1>
<ul>
<li>&#x6D4F;&#x89C8;&#x5668;&#x6269;&#x5C55;&#x7684;&#x65B9;&#x6CD5;&#xFF0C;&#x4E3B;&#x8981;&#x7528;&#x4E8E;&#x7F51;&#x9875;&#x548C;EC&#x7A0B;&#x5E8F;&#x8FDB;&#x884C;&#x4EA4;&#x4E92;&#xFF0C;&#x5E76;&#x4E14;&#x8FD9;&#x4E9B;&#x65B9;&#x6CD5;&#x53EA;&#x80FD;&#x5728;&#x7F51;&#x9875;&#x4E2D;&#x8C03;&#x7528;&#x624D;&#x884C;</li>
</ul>
<h2 id="&#x542F;&#x52A8;&#x811A;&#x672C;"><a name="&#x542F;&#x52A8;&#x811A;&#x672C;" class="anchor-navigation-ex-anchor" href="#&#x542F;&#x52A8;&#x811A;&#x672C;"><i class="fa fa-link" aria-hidden="true"></i></a>3.1. &#x542F;&#x52A8;&#x811A;&#x672C;</h2>
<blockquote>
<pre><code class="lang-javascript"><span class="hljs-built_in">window</span>.ec.start()
</code></pre>
</blockquote>
<h2 id="&#x505C;&#x6B62;&#x811A;&#x672C;"><a name="&#x505C;&#x6B62;&#x811A;&#x672C;" class="anchor-navigation-ex-anchor" href="#&#x505C;&#x6B62;&#x811A;&#x672C;"><i class="fa fa-link" aria-hidden="true"></i></a>3.2. &#x505C;&#x6B62;&#x811A;&#x672C;</h2>
<blockquote>
<pre><code class="lang-javascript"><span class="hljs-built_in">window</span>.ec.stopTask()
</code></pre>
</blockquote>
<h2 id="&#x9690;&#x85CF;&#x5F00;&#x59CB;&#x6309;&#x94AE;"><a name="&#x9690;&#x85CF;&#x5F00;&#x59CB;&#x6309;&#x94AE;" class="anchor-navigation-ex-anchor" href="#&#x9690;&#x85CF;&#x5F00;&#x59CB;&#x6309;&#x94AE;"><i class="fa fa-link" aria-hidden="true"></i></a>3.3. &#x9690;&#x85CF;&#x5F00;&#x59CB;&#x6309;&#x94AE;</h2>
<blockquote>
<pre><code class="lang-javascript"><span class="hljs-built_in">window</span>.ec.hideStartBtn()
</code></pre>
</blockquote>
<h2 id="&#x663E;&#x793A;&#x5F00;&#x59CB;&#x6309;&#x94AE;"><a name="&#x663E;&#x793A;&#x5F00;&#x59CB;&#x6309;&#x94AE;" class="anchor-navigation-ex-anchor" href="#&#x663E;&#x793A;&#x5F00;&#x59CB;&#x6309;&#x94AE;"><i class="fa fa-link" aria-hidden="true"></i></a>3.4. &#x663E;&#x793A;&#x5F00;&#x59CB;&#x6309;&#x94AE;</h2>
<blockquote>
<pre><code class="lang-javascript"><span class="hljs-built_in">window</span>.ec.displayStartBtn()
</code></pre>
</blockquote>
<h2 id="&#x83B7;&#x53D6;&#x6240;&#x6709;&#x914D;&#x7F6E;&#x7684;json&#x5B57;&#x7B26;&#x4E32;"><a name="&#x83B7;&#x53D6;&#x6240;&#x6709;&#x914D;&#x7F6E;&#x7684;json&#x5B57;&#x7B26;&#x4E32;" class="anchor-navigation-ex-anchor" href="#&#x83B7;&#x53D6;&#x6240;&#x6709;&#x914D;&#x7F6E;&#x7684;json&#x5B57;&#x7B26;&#x4E32;"><i class="fa fa-link" aria-hidden="true"></i></a>3.5. &#x83B7;&#x53D6;&#x6240;&#x6709;&#x914D;&#x7F6E;&#x7684;JSON&#x5B57;&#x7B26;&#x4E32;</h2>
<blockquote>
<pre><code class="lang-javascript"><span class="hljs-keyword">var</span> s= <span class="hljs-built_in">window</span>.ec.getConfigJSON();
alert(s);
</code></pre>
</blockquote>
<h2 id="&#x83B7;&#x53D6;&#x5355;&#x4E2A;&#x914D;&#x7F6E;&#x7684;&#x5B57;&#x7B26;&#x4E32;"><a name="&#x83B7;&#x53D6;&#x5355;&#x4E2A;&#x914D;&#x7F6E;&#x7684;&#x5B57;&#x7B26;&#x4E32;" class="anchor-navigation-ex-anchor" href="#&#x83B7;&#x53D6;&#x5355;&#x4E2A;&#x914D;&#x7F6E;&#x7684;&#x5B57;&#x7B26;&#x4E32;"><i class="fa fa-link" aria-hidden="true"></i></a>3.6. &#x83B7;&#x53D6;&#x5355;&#x4E2A;&#x914D;&#x7F6E;&#x7684;&#x5B57;&#x7B26;&#x4E32;</h2>
<blockquote>
<pre><code class="lang-javascript"><span class="hljs-keyword">var</span> s= <span class="hljs-built_in">window</span>.ec.getConfig(<span class="hljs-string">&quot;name&quot;</span>);
alert(s);
</code></pre>
</blockquote>
<h2 id="&#x4FDD;&#x5B58;&#x5355;&#x4E2A;&#x914D;&#x7F6E;"><a name="&#x4FDD;&#x5B58;&#x5355;&#x4E2A;&#x914D;&#x7F6E;" class="anchor-navigation-ex-anchor" href="#&#x4FDD;&#x5B58;&#x5355;&#x4E2A;&#x914D;&#x7F6E;"><i class="fa fa-link" aria-hidden="true"></i></a>3.7. &#x4FDD;&#x5B58;&#x5355;&#x4E2A;&#x914D;&#x7F6E;</h2>
<blockquote>
<pre><code class="lang-javascript"><span class="hljs-keyword">var</span> s= <span class="hljs-built_in">window</span>.ec.save(<span class="hljs-string">&quot;name&quot;</span>,<span class="hljs-string">&quot;123&quot;</span>);
alert(s);
</code></pre>
<p>window.ec.saveConfig(&quot;name&quot;, name);</p>
</blockquote>
<h2 id="&#x6253;&#x5F00;ec&#x7684;&#x7CFB;&#x7EDF;&#x8BBE;&#x7F6E;"><a name="&#x6253;&#x5F00;ec&#x7684;&#x7CFB;&#x7EDF;&#x8BBE;&#x7F6E;" class="anchor-navigation-ex-anchor" href="#&#x6253;&#x5F00;ec&#x7684;&#x7CFB;&#x7EDF;&#x8BBE;&#x7F6E;"><i class="fa fa-link" aria-hidden="true"></i></a>3.8. &#x6253;&#x5F00;EC&#x7684;&#x7CFB;&#x7EDF;&#x8BBE;&#x7F6E;</h2>
<blockquote>
<pre><code class="lang-javascript"><span class="hljs-built_in">window</span>.ec.openECSystemSetting()
</code></pre>
</blockquote>
<h2 id="&#x663E;&#x793A;toast&#x6D88;&#x606F;"><a name="&#x663E;&#x793A;toast&#x6D88;&#x606F;" class="anchor-navigation-ex-anchor" href="#&#x663E;&#x793A;toast&#x6D88;&#x606F;"><i class="fa fa-link" aria-hidden="true"></i></a>3.9. &#x663E;&#x793A;Toast&#x6D88;&#x606F;</h2>
<blockquote>
<pre><code class="lang-javascript"><span class="hljs-built_in">window</span>.ec.toast(<span class="hljs-string">&quot;&#x6211;&#x662F;toast&#x6D88;&#x606F;&quot;</span>)  ;
</code></pre>
</blockquote>
<h2 id="&#x663E;&#x793A;&#x65E5;&#x5FD7;&#x6D88;&#x606F;&#x7A97;&#x53E3;"><a name="&#x663E;&#x793A;&#x65E5;&#x5FD7;&#x6D88;&#x606F;&#x7A97;&#x53E3;" class="anchor-navigation-ex-anchor" href="#&#x663E;&#x793A;&#x65E5;&#x5FD7;&#x6D88;&#x606F;&#x7A97;&#x53E3;"><i class="fa fa-link" aria-hidden="true"></i></a>3.10. &#x663E;&#x793A;&#x65E5;&#x5FD7;&#x6D88;&#x606F;&#x7A97;&#x53E3;</h2>
<blockquote>
<pre><code class="lang-javascript"><span class="hljs-built_in">window</span>.ec.showLogWindow();
</code></pre>
</blockquote>
<h2 id="&#x5173;&#x95ED;&#x65E5;&#x5FD7;&#x6D88;&#x606F;&#x7A97;&#x53E3;"><a name="&#x5173;&#x95ED;&#x65E5;&#x5FD7;&#x6D88;&#x606F;&#x7A97;&#x53E3;" class="anchor-navigation-ex-anchor" href="#&#x5173;&#x95ED;&#x65E5;&#x5FD7;&#x6D88;&#x606F;&#x7A97;&#x53E3;"><i class="fa fa-link" aria-hidden="true"></i></a>3.11. &#x5173;&#x95ED;&#x65E5;&#x5FD7;&#x6D88;&#x606F;&#x7A97;&#x53E3;</h2>
<blockquote>
<pre><code class="lang-javascript"><span class="hljs-built_in">window</span>.ec.closeLogWindow();
</code></pre>
</blockquote>
<h2 id="&#x663E;&#x793A;&#x65E5;&#x5FD7;&#x6D88;&#x606F;"><a name="&#x663E;&#x793A;&#x65E5;&#x5FD7;&#x6D88;&#x606F;" class="anchor-navigation-ex-anchor" href="#&#x663E;&#x793A;&#x65E5;&#x5FD7;&#x6D88;&#x606F;"><i class="fa fa-link" aria-hidden="true"></i></a>3.12. &#x663E;&#x793A;&#x65E5;&#x5FD7;&#x6D88;&#x606F;</h2>
<blockquote>
<pre><code class="lang-javascript"><span class="hljs-built_in">window</span>.ec.logd(<span class="hljs-string">&quot;&#x6211;&#x662F;&#x65E5;&#x5FD7;&quot;</span>);
</code></pre>
</blockquote>
<h2 id="&#x663E;&#x793A;&#x542F;&#x505C;&#x63A7;&#x5236;&#x7A97;&#x53E3;"><a name="&#x663E;&#x793A;&#x542F;&#x505C;&#x63A7;&#x5236;&#x7A97;&#x53E3;" class="anchor-navigation-ex-anchor" href="#&#x663E;&#x793A;&#x542F;&#x505C;&#x63A7;&#x5236;&#x7A97;&#x53E3;"><i class="fa fa-link" aria-hidden="true"></i></a>3.13. &#x663E;&#x793A;&#x542F;&#x505C;&#x63A7;&#x5236;&#x7A97;&#x53E3;</h2>
<blockquote>
<pre><code class="lang-javascript"><span class="hljs-built_in">window</span>.ec.showCtrlWindow();
</code></pre>
</blockquote>
<h2 id="&#x5173;&#x95ED;&#x542F;&#x505C;&#x63A7;&#x5236;&#x7A97;&#x53E3;"><a name="&#x5173;&#x95ED;&#x542F;&#x505C;&#x63A7;&#x5236;&#x7A97;&#x53E3;" class="anchor-navigation-ex-anchor" href="#&#x5173;&#x95ED;&#x542F;&#x505C;&#x63A7;&#x5236;&#x7A97;&#x53E3;"><i class="fa fa-link" aria-hidden="true"></i></a>3.14. &#x5173;&#x95ED;&#x542F;&#x505C;&#x63A7;&#x5236;&#x7A97;&#x53E3;</h2>
<blockquote>
<pre><code class="lang-javascript"><span class="hljs-built_in">window</span>.ec.closeCtrlWindow();
</code></pre>
</blockquote>
<h2 id="&#x6253;&#x5F00;&#x5176;&#x4ED6;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;-openactivity"><a name="&#x6253;&#x5F00;&#x5176;&#x4ED6;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;-openactivity" class="anchor-navigation-ex-anchor" href="#&#x6253;&#x5F00;&#x5176;&#x4ED6;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;-openactivity"><i class="fa fa-link" aria-hidden="true"></i></a>3.15. &#x6253;&#x5F00;&#x5176;&#x4ED6;&#x5E94;&#x7528;&#x7A0B;&#x5E8F; openActivity</h2>
<blockquote>
<pre><code class="lang-javascript"><span class="hljs-comment">//&#x6253;&#x5F00;&#x6D4F;&#x89C8;&#x5668;&#x4E0B;&#x8F7D;&#x6D4B;&#x8BD5;</span>
<span class="hljs-keyword">var</span> m ={
              <span class="hljs-string">&quot;action&quot;</span>:<span class="hljs-string">&quot;android.intent.action.VIEW&quot;</span>,
              <span class="hljs-string">&quot;uri&quot;</span>:<span class="hljs-string">&quot;https://imtt.dd.qq.com/16891/apk/55259F8EF9824AF1BF80106B0E00BCD1.apk?fsname=com.tencent.mobileqq_8.3.9_1424.apk&amp;csr=1bbd&quot;</span>

          };
          <span class="hljs-keyword">var</span> x = <span class="hljs-built_in">window</span>.ec.openActivity(<span class="hljs-built_in">JSON</span>.stringify(m));
          <span class="hljs-built_in">window</span>.ec.logd(<span class="hljs-string">&quot;x &quot;</span>+x);  

    <span class="hljs-comment">//&#x6253;&#x5F00;&#x6296;&#x97F3;&#x76F4;&#x64AD;</span>
     <span class="hljs-keyword">var</span> map={
         <span class="hljs-string">&quot;uri&quot;</span>:<span class="hljs-string">&quot;snssdk1128://aweme/live/6701887916223941379&quot;</span>,
     };
     <span class="hljs-built_in">window</span>.ec.openActivity(<span class="hljs-built_in">JSON</span>.stringify(map));
</code></pre>
</blockquote>
<h1 id="&#x670D;&#x52A1;&#x72B6;&#x6001;&#x63A7;&#x5236;"><a name="&#x670D;&#x52A1;&#x72B6;&#x6001;&#x63A7;&#x5236;" class="anchor-navigation-ex-anchor" href="#&#x670D;&#x52A1;&#x72B6;&#x6001;&#x63A7;&#x5236;"><i class="fa fa-link" aria-hidden="true"></i></a>4. &#x670D;&#x52A1;&#x72B6;&#x6001;&#x63A7;&#x5236;</h1>
<h2 id="&#x662F;&#x5426;&#x662F;&#x65E0;&#x969C;&#x788D;&#x670D;&#x52A1;&#x6A21;&#x5F0F;"><a name="&#x662F;&#x5426;&#x662F;&#x65E0;&#x969C;&#x788D;&#x670D;&#x52A1;&#x6A21;&#x5F0F;" class="anchor-navigation-ex-anchor" href="#&#x662F;&#x5426;&#x662F;&#x65E0;&#x969C;&#x788D;&#x670D;&#x52A1;&#x6A21;&#x5F0F;"><i class="fa fa-link" aria-hidden="true"></i></a>4.1. &#x662F;&#x5426;&#x662F;&#x65E0;&#x969C;&#x788D;&#x670D;&#x52A1;&#x6A21;&#x5F0F;</h2>
<blockquote>
<pre><code class="lang-javascript"><span class="hljs-keyword">var</span> s = <span class="hljs-built_in">window</span>.ec.isAccMode();
alert(s);
</code></pre>
</blockquote>
<h2 id="&#x662F;&#x5426;&#x662F;&#x4EE3;&#x7406;&#x670D;&#x52A1;&#x6A21;&#x5F0F;"><a name="&#x662F;&#x5426;&#x662F;&#x4EE3;&#x7406;&#x670D;&#x52A1;&#x6A21;&#x5F0F;" class="anchor-navigation-ex-anchor" href="#&#x662F;&#x5426;&#x662F;&#x4EE3;&#x7406;&#x670D;&#x52A1;&#x6A21;&#x5F0F;"><i class="fa fa-link" aria-hidden="true"></i></a>4.2. &#x662F;&#x5426;&#x662F;&#x4EE3;&#x7406;&#x670D;&#x52A1;&#x6A21;&#x5F0F;</h2>
<blockquote>
<pre><code class="lang-javascript"><span class="hljs-keyword">var</span> s = <span class="hljs-built_in">window</span>.ec.isAgentMode();
alert(s);
</code></pre>
</blockquote>
<h2 id="&#x65E0;&#x969C;&#x788D;&#x670D;&#x52A1;&#x662F;&#x5426;&#x5DF2;&#x7ECF;&#x542F;&#x52A8;"><a name="&#x65E0;&#x969C;&#x788D;&#x670D;&#x52A1;&#x662F;&#x5426;&#x5DF2;&#x7ECF;&#x542F;&#x52A8;" class="anchor-navigation-ex-anchor" href="#&#x65E0;&#x969C;&#x788D;&#x670D;&#x52A1;&#x662F;&#x5426;&#x5DF2;&#x7ECF;&#x542F;&#x52A8;"><i class="fa fa-link" aria-hidden="true"></i></a>4.3. &#x65E0;&#x969C;&#x788D;&#x670D;&#x52A1;&#x662F;&#x5426;&#x5DF2;&#x7ECF;&#x542F;&#x52A8;</h2>
<blockquote>
<pre><code class="lang-javascript"><span class="hljs-keyword">var</span> s = <span class="hljs-built_in">window</span>.ec.isAccServiceOk();
alert(s);
</code></pre>
</blockquote>
<h2 id="&#x4EE3;&#x7406;&#x670D;&#x52A1;&#x662F;&#x5426;&#x5DF2;&#x7ECF;&#x542F;&#x52A8;"><a name="&#x4EE3;&#x7406;&#x670D;&#x52A1;&#x662F;&#x5426;&#x5DF2;&#x7ECF;&#x542F;&#x52A8;" class="anchor-navigation-ex-anchor" href="#&#x4EE3;&#x7406;&#x670D;&#x52A1;&#x662F;&#x5426;&#x5DF2;&#x7ECF;&#x542F;&#x52A8;"><i class="fa fa-link" aria-hidden="true"></i></a>4.4. &#x4EE3;&#x7406;&#x670D;&#x52A1;&#x662F;&#x5426;&#x5DF2;&#x7ECF;&#x542F;&#x52A8;</h2>
<blockquote>
<pre><code class="lang-javascript"><span class="hljs-keyword">var</span> s = <span class="hljs-built_in">window</span>.ec.isAgentServiceOk();
alert(s);
</code></pre>
</blockquote>
<h2 id="&#x542F;&#x52A8;&#x670D;&#x52A1;&#x73AF;&#x5883;"><a name="&#x542F;&#x52A8;&#x670D;&#x52A1;&#x73AF;&#x5883;" class="anchor-navigation-ex-anchor" href="#&#x542F;&#x52A8;&#x670D;&#x52A1;&#x73AF;&#x5883;"><i class="fa fa-link" aria-hidden="true"></i></a>4.5. &#x542F;&#x52A8;&#x670D;&#x52A1;&#x73AF;&#x5883;</h2>
<blockquote>
<pre><code class="lang-javascript"><span class="hljs-keyword">var</span> s = <span class="hljs-built_in">window</span>.ec.startEnv();
alert(s);
</code></pre>
</blockquote>
<h1 id="&#x60AC;&#x6D6E;&#x7A97;&#x63A7;&#x5236;"><a name="&#x60AC;&#x6D6E;&#x7A97;&#x63A7;&#x5236;" class="anchor-navigation-ex-anchor" href="#&#x60AC;&#x6D6E;&#x7A97;&#x63A7;&#x5236;"><i class="fa fa-link" aria-hidden="true"></i></a>5. &#x60AC;&#x6D6E;&#x7A97;&#x63A7;&#x5236;</h1>
<h2 id="&#x662F;&#x5426;&#x6709;&#x60AC;&#x6D6E;&#x7A97;&#x6743;&#x9650;"><a name="&#x662F;&#x5426;&#x6709;&#x60AC;&#x6D6E;&#x7A97;&#x6743;&#x9650;" class="anchor-navigation-ex-anchor" href="#&#x662F;&#x5426;&#x6709;&#x60AC;&#x6D6E;&#x7A97;&#x6743;&#x9650;"><i class="fa fa-link" aria-hidden="true"></i></a>5.1. &#x662F;&#x5426;&#x6709;&#x60AC;&#x6D6E;&#x7A97;&#x6743;&#x9650;</h2>
<blockquote>
<pre><code class="lang-javascript"><span class="hljs-keyword">var</span> s = <span class="hljs-built_in">window</span>.ec.hasFloatViewPermission();
alert(s);
</code></pre>
</blockquote>
<h2 id="&#x8BF7;&#x6C42;&#x60AC;&#x6D6E;&#x7A97;&#x6743;&#x9650;"><a name="&#x8BF7;&#x6C42;&#x60AC;&#x6D6E;&#x7A97;&#x6743;&#x9650;" class="anchor-navigation-ex-anchor" href="#&#x8BF7;&#x6C42;&#x60AC;&#x6D6E;&#x7A97;&#x6743;&#x9650;"><i class="fa fa-link" aria-hidden="true"></i></a>5.2. &#x8BF7;&#x6C42;&#x60AC;&#x6D6E;&#x7A97;&#x6743;&#x9650;</h2>
<blockquote>
<pre><code class="lang-javascript"><span class="hljs-comment">//&#x53C2;&#x6570;&#x662F;&#x8D85;&#x65F6;&#x65F6;&#x95F4;&#xFF0C;&#x5355;&#x4F4D;&#x662F;&#x79D2;</span>
<span class="hljs-keyword">var</span> s = <span class="hljs-built_in">window</span>.ec.requestFloatViewPermission(<span class="hljs-number">10</span>);
alert(s);
</code></pre>
</blockquote>
<h2 id="&#x5C55;&#x793A;&#x6D6E;&#x7A97;"><a name="&#x5C55;&#x793A;&#x6D6E;&#x7A97;" class="anchor-navigation-ex-anchor" href="#&#x5C55;&#x793A;&#x6D6E;&#x7A97;"><i class="fa fa-link" aria-hidden="true"></i></a>5.3. &#x5C55;&#x793A;&#x6D6E;&#x7A97;</h2>
<blockquote>
<pre><code class="lang-javascript"><span class="hljs-keyword">var</span> m = {
       <span class="hljs-string">&quot;path&quot;</span>: <span class="hljs-string">&quot;main.html&quot;</span>,
       <span class="hljs-string">&quot;tag&quot;</span>: <span class="hljs-string">&quot;tag&quot;</span>,
       <span class="hljs-string">&quot;titleBg&quot;</span>: <span class="hljs-string">&quot;#888888&quot;</span>,
       <span class="hljs-string">&quot;x&quot;</span>: <span class="hljs-number">10</span>,
       <span class="hljs-string">&quot;y&quot;</span>: <span class="hljs-number">10</span>,
       <span class="hljs-string">&quot;w&quot;</span>: <span class="hljs-number">100</span>,
       <span class="hljs-string">&quot;h&quot;</span>: <span class="hljs-number">200</span>
   };
   <span class="hljs-keyword">var</span> xd =<span class="hljs-built_in">window</span>.ec.showFloatView(<span class="hljs-built_in">JSON</span>.stringify(m));
    alert(xd);
</code></pre>
</blockquote>
<h2 id="&#x5173;&#x95ED;&#x6D6E;&#x7A97;"><a name="&#x5173;&#x95ED;&#x6D6E;&#x7A97;" class="anchor-navigation-ex-anchor" href="#&#x5173;&#x95ED;&#x6D6E;&#x7A97;"><i class="fa fa-link" aria-hidden="true"></i></a>5.4. &#x5173;&#x95ED;&#x6D6E;&#x7A97;</h2>
<blockquote>
<pre><code class="lang-javascript"><span class="hljs-keyword">var</span> m = {
       <span class="hljs-string">&quot;path&quot;</span>: <span class="hljs-string">&quot;main.html&quot;</span>,
       <span class="hljs-string">&quot;tag&quot;</span>: <span class="hljs-string">&quot;tag&quot;</span>,
       <span class="hljs-string">&quot;titleBg&quot;</span>: <span class="hljs-string">&quot;#888888&quot;</span>,
       <span class="hljs-string">&quot;x&quot;</span>: <span class="hljs-number">10</span>,
       <span class="hljs-string">&quot;y&quot;</span>: <span class="hljs-number">10</span>,
       <span class="hljs-string">&quot;w&quot;</span>: <span class="hljs-number">100</span>,
       <span class="hljs-string">&quot;h&quot;</span>: <span class="hljs-number">200</span>
   };
   <span class="hljs-keyword">var</span> xd =<span class="hljs-built_in">window</span>.ec.showFloatView(<span class="hljs-built_in">JSON</span>.stringify(m));
    setTimeout(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"></span>) </span>{
        <span class="hljs-built_in">window</span>.ec.closeFloatView(<span class="hljs-string">&quot;tag&quot;</span>);
    },<span class="hljs-number">3000</span>);
    alert(xd);
</code></pre>
</blockquote>
<h2 id="&#x5173;&#x95ED;&#x6240;&#x6709;&#x6D6E;&#x7A97;&#xFF0C;&#x4E0D;&#x5305;&#x542B;&#x65E5;&#x5FD7;&#x60AC;&#x6D6E;&#x7A97;"><a name="&#x5173;&#x95ED;&#x6240;&#x6709;&#x6D6E;&#x7A97;&#xFF0C;&#x4E0D;&#x5305;&#x542B;&#x65E5;&#x5FD7;&#x60AC;&#x6D6E;&#x7A97;" class="anchor-navigation-ex-anchor" href="#&#x5173;&#x95ED;&#x6240;&#x6709;&#x6D6E;&#x7A97;&#xFF0C;&#x4E0D;&#x5305;&#x542B;&#x65E5;&#x5FD7;&#x60AC;&#x6D6E;&#x7A97;"><i class="fa fa-link" aria-hidden="true"></i></a>5.5. &#x5173;&#x95ED;&#x6240;&#x6709;&#x6D6E;&#x7A97;&#xFF0C;&#x4E0D;&#x5305;&#x542B;&#x65E5;&#x5FD7;&#x60AC;&#x6D6E;&#x7A97;</h2>
<blockquote>
<pre><code class="lang-javascript"><span class="hljs-keyword">var</span> m = {
       <span class="hljs-string">&quot;path&quot;</span>: <span class="hljs-string">&quot;main.html&quot;</span>,
       <span class="hljs-string">&quot;tag&quot;</span>: <span class="hljs-string">&quot;tag&quot;</span>,
       <span class="hljs-string">&quot;titleBg&quot;</span>: <span class="hljs-string">&quot;#888888&quot;</span>,
       <span class="hljs-string">&quot;x&quot;</span>: <span class="hljs-number">10</span>,
       <span class="hljs-string">&quot;y&quot;</span>: <span class="hljs-number">10</span>,
       <span class="hljs-string">&quot;w&quot;</span>: <span class="hljs-number">100</span>,
       <span class="hljs-string">&quot;h&quot;</span>: <span class="hljs-number">200</span>
   };
   <span class="hljs-keyword">var</span> xd =<span class="hljs-built_in">window</span>.ec.showFloatView(<span class="hljs-built_in">JSON</span>.stringify(m));
    setTimeout(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"></span>) </span>{
        <span class="hljs-built_in">window</span>.ec.closeAllFloatView();
    },<span class="hljs-number">3000</span>);
    alert(xd);
</code></pre>
</blockquote>
<h1 id="&#x5B9A;&#x65F6;&#x4EFB;&#x52A1;"><a name="&#x5B9A;&#x65F6;&#x4EFB;&#x52A1;" class="anchor-navigation-ex-anchor" href="#&#x5B9A;&#x65F6;&#x4EFB;&#x52A1;"><i class="fa fa-link" aria-hidden="true"></i></a>6. &#x5B9A;&#x65F6;&#x4EFB;&#x52A1;</h1>
<h2 id="&#x5F00;&#x542F;&#x4E00;&#x4E2A;&#x5B9A;&#x65F6;&#x4EFB;&#x52A1;"><a name="&#x5F00;&#x542F;&#x4E00;&#x4E2A;&#x5B9A;&#x65F6;&#x4EFB;&#x52A1;" class="anchor-navigation-ex-anchor" href="#&#x5F00;&#x542F;&#x4E00;&#x4E2A;&#x5B9A;&#x65F6;&#x4EFB;&#x52A1;"><i class="fa fa-link" aria-hidden="true"></i></a>6.1. &#x5F00;&#x542F;&#x4E00;&#x4E2A;&#x5B9A;&#x65F6;&#x4EFB;&#x52A1;</h2>
<ul>
<li>&#x5F00;&#x542F;&#x4E00;&#x4E2A;&#x5B9A;&#x65F6;&#x811A;&#x672C;&#x4EFB;&#x52A1;</li>
<li>@param tag &#x4EFB;&#x52A1;&#x7684;&#x552F;&#x4E00;&#x6807;&#x793A;&#xFF0C;&#x4E0D;&#x80FD;&#x4E3A;&#x7A7A;&#xFF0C;&#x811A;&#x672C;&#x4E2D;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;readConfigString(&quot;jobTaskTag&quot;)&#x83B7;&#x53D6;&#x5F53;&#x524D;tag&#x503C;&#xFF0C;&#x5224;&#x65AD;&#x662F;&#x90A3;&#x4E2A;&#x4EFB;&#x52A1;&#x8FC7;&#x6765;&#x6267;&#x884C;&#x7684;</li>
<li>@param execTime &#x5B9A;&#x65F6;&#x65F6;&#x95F4;&#x683C;&#x5F0F;: 2020-04-17 19:20:00&#xFF0C;&#x6216;&#x8005;&#x76F4;&#x63A5;&#x662F;&#x79D2;&#x6570;&#x5B57;&#xFF0C;&#x4F8B;&#x5982; 3&#xFF0C;&#x4EE3;&#x8868;3&#x79D2;&#x540E;</li>
<li>@param cancelBeforeRunning</li>
<li>@return &#x6574;&#x578B; jobid</li>
</ul>
<blockquote>
<pre><code class="lang-javascript"><span class="hljs-keyword">var</span> time=<span class="hljs-string">&quot;2020-04-17 09:00:00&quot;</span>;
<span class="hljs-keyword">var</span> id =<span class="hljs-built_in">window</span>.ec.startJob(<span class="hljs-string">&quot;task1&quot;</span>,time,<span class="hljs-literal">true</span>);
 alert(<span class="hljs-string">&quot;job id &quot;</span>+id);
</code></pre>
</blockquote>
<h2 id="&#x83B7;&#x53D6;&#x6240;&#x6709;&#x5B9A;&#x65F6;&#x4EFB;&#x52A1;tag"><a name="&#x83B7;&#x53D6;&#x6240;&#x6709;&#x5B9A;&#x65F6;&#x4EFB;&#x52A1;tag" class="anchor-navigation-ex-anchor" href="#&#x83B7;&#x53D6;&#x6240;&#x6709;&#x5B9A;&#x65F6;&#x4EFB;&#x52A1;tag"><i class="fa fa-link" aria-hidden="true"></i></a>6.2. &#x83B7;&#x53D6;&#x6240;&#x6709;&#x5B9A;&#x65F6;&#x4EFB;&#x52A1;TAG</h2>
<blockquote>
<pre><code class="lang-javascript"><span class="hljs-keyword">var</span> t =<span class="hljs-built_in">window</span>.ec.getAllJobTag();
 alert(<span class="hljs-string">&quot;job tags &quot;</span>+t);
</code></pre>
</blockquote>
<h2 id="&#x53D6;&#x6D88;&#x6240;&#x6709;&#x5B9A;&#x65F6;&#x4EFB;&#x52A1;"><a name="&#x53D6;&#x6D88;&#x6240;&#x6709;&#x5B9A;&#x65F6;&#x4EFB;&#x52A1;" class="anchor-navigation-ex-anchor" href="#&#x53D6;&#x6D88;&#x6240;&#x6709;&#x5B9A;&#x65F6;&#x4EFB;&#x52A1;"><i class="fa fa-link" aria-hidden="true"></i></a>6.3. &#x53D6;&#x6D88;&#x6240;&#x6709;&#x5B9A;&#x65F6;&#x4EFB;&#x52A1;</h2>
<blockquote>
<pre><code class="lang-javascript"><span class="hljs-keyword">var</span> t =<span class="hljs-built_in">window</span>.ec.cancelAllJob();
 alert(<span class="hljs-string">&quot;job cancel &quot;</span>+t);
</code></pre>
</blockquote>
<h2 id="&#x53D6;&#x6D88;&#x6307;&#x5B9A;tag&#x5B9A;&#x65F6;&#x4EFB;&#x52A1;"><a name="&#x53D6;&#x6D88;&#x6307;&#x5B9A;tag&#x5B9A;&#x65F6;&#x4EFB;&#x52A1;" class="anchor-navigation-ex-anchor" href="#&#x53D6;&#x6D88;&#x6307;&#x5B9A;tag&#x5B9A;&#x65F6;&#x4EFB;&#x52A1;"><i class="fa fa-link" aria-hidden="true"></i></a>6.4. &#x53D6;&#x6D88;&#x6307;&#x5B9A;TAG&#x5B9A;&#x65F6;&#x4EFB;&#x52A1;</h2>
<blockquote>
<pre><code class="lang-javascript"><span class="hljs-comment">//&#x53C2;&#x6570;task1 &#x662F;&#x521B;&#x5EFA;&#x5B9A;&#x65F6;&#x4EFB;&#x52A1;&#x7684;tag&#x503C;</span>
<span class="hljs-keyword">var</span> t =<span class="hljs-built_in">window</span>.ec.cancelJob(<span class="hljs-string">&quot;task1&quot;</span>);
 alert(<span class="hljs-string">&quot;job cancel &quot;</span>+t);
</code></pre>
</blockquote>

<script>console.log("plugin-popup....");document.onclick = function(e){ e.target.tagName === "IMG" && window.open(e.target.src,e.target.src)}</script><style>img{cursor:pointer}</style>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="ui/switch.html" class="navigation navigation-prev " aria-label="Previous page: Swtich开关按钮">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="../hot-update.html" class="navigation navigation-next " aria-label="Next page: 热更新功能">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"H5 UI定制","level":"1.9","depth":1,"next":{"title":"热更新功能","level":"1.10","depth":1,"path":"zh-cn/hot-update.md","ref":"zh-cn/hot-update.md","articles":[]},"previous":{"title":"Swtich开关按钮","level":"1.8.3.16","depth":3,"path":"zh-cn/funcs/ui/switch.md","ref":"zh-cn/funcs/ui/switch.md","articles":[]},"dir":"ltr"},"config":{"plugins":["chapter-fold","code","copy-code-button","-lunr","-search","search-pro","anchor-navigation-ex","hide-element","favicon-absolute","popup"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"chapter-fold":{},"search-pro":{},"popup":{},"code":{"copyButtons":true},"favicon-absolute":{"appleTouchIconMore":{},"appleTouchIconPrecomposed152":"/zh-cn/images/ico.png","appleTouchIconPrecomposedMore":{},"favicon":"/zh-cn/images/ico.png"},"hide-element":{"elements":[".gitbook-link"]},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"anchor-navigation-ex":{"associatedWithSummary":true,"float":{"floatIcon":"fa fa-navicon","level1Icon":"","level2Icon":"","level3Icon":"","showLevelIcon":false},"mode":"float","multipleH1":true,"pageTop":{"level1Icon":"","level2Icon":"","level3Icon":"","showLevelIcon":false},"printLog":false,"showGoTop":true,"showLevel":true},"copy-code-button":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"EasyClick开发文档","language":"zh-hans","gitbook":"*","description":"记录EasyClick开发教程和常用的函数"},"file":{"path":"zh-cn/funcs/html-ui-custom.md","mtime":"2020-06-21T13:56:34.300Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-06-23T14:38:08.296Z"},"basePath":"../..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../../gitbook/gitbook.js"></script>
    <script src="../../gitbook/theme.js"></script>
    
        
        <script src="../../gitbook/gitbook-plugin-chapter-fold/chapter-fold.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-code/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-copy-code-button/toggle.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search-pro/search.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-hide-element/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

